package org.yate.oa.service.imp;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.yate.oa.dao.IBaseMapperDao;
import org.yate.oa.dao.mapper.ResumeTaskMapper;
import org.yate.oa.model.ResumeTaskEntity;
import org.yate.oa.service.IResumeTaskService;
import org.yate.oa.utils.Pagination;

@Service
public class ResumeTaskService extends BaseService<ResumeTaskEntity, Integer> implements IResumeTaskService
{
    
    @Resource(name = "resumeTaskMapper")
    private ResumeTaskMapper resumeTaskDao;
    
    @Override
    protected IBaseMapperDao<ResumeTaskEntity, Integer> getMapperDao()
    {
        return this.resumeTaskDao;
    }
    
    @Override
    public Pagination<ResumeTaskEntity> getEntitieSearch(int idx, int size, String orderField, String orderMode,
        String... strings)
    {
        Pagination<ResumeTaskEntity> result = new Pagination<ResumeTaskEntity>(idx, size);
        result.setRows(this.resumeTaskDao.getEntitieSearch(result, orderField, orderMode, strings));
        return result;
    }
    
}
